package com.rory.gooday.life;

import com.rory.gooday.common.model.Life;

import java.util.List;

public class LifeService {

	private final Life lifeDao = new Life().dao();

    public List<Life> list() {
        List<Life> list = lifeDao.find("SELECT * FROM life order by sort asc");
        return list;
    }
	
	public Life findById(int id) {
		return lifeDao.findById(id);
	}

	public void deleteById(int id) {
		lifeDao.deleteById(id);
	}
}
